package com.xb.xbpm.mapper;

import com.xb.xbpm.bean.Pv;

import java.util.List;
import java.util.Map;

public interface PvMapper {
    int deleteByPrimaryKey(String id);

    int insert(Pv record);

    int insertSelective(Pv record);

    Pv selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Pv record);

    int updateByPrimaryKey(Pv record);


    //根据条件获取pv详情
    Pv getPvInfoByParam(Pv pv);

    //小时——聚合查询 pvList 小时
    List<Map<String,Object>> getPvListByHour(Map<String,String> map);
    List<Map<String,Object>> getUvListByHour(Map<String,String> map);
    List<Map<String,Object>> getIpsListByHour(Map<String,String> map);
    List<Map<String,Object>> getNewUvListByHour(Map<String,String> map);
    //日期——聚合查询 pvList
    List<Map<String,Object>> getPvListByDay(Map<String,String> map);
    List<Map<String,Object>> getUvListByDay(Map<String,String> map);
    List<Map<String,Object>> getIpsListByDay(Map<String,String> map);
    List<Map<String,Object>> getNewUvListByDay(Map<String,String> map);

    Map<String,Object> getTotalCountPv(Map<String,String> map);
    Map<String,Object> getTotalCountUv(Map<String,String> map);
    Map<String,Object> getTotalCountIps(Map<String,String> map);
    Map<String,Object> getTotalCountNewUv(Map<String,String> map);
}